package com.example.cdctestsystem.pojo;

import java.io.Serializable;
import java.util.Date;

public class Knowledge implements Serializable {
    private Integer id;

    /**
	* 问题
	*/
    private String problem;

    /**
	* 答案
	*/
    private String answer;

    /**
	* 1为使用，0为删除
	*/
    private Boolean enable;

    /**
	* 发布时间
	*/
    private Date time;

    /**
	* 发布管理员id
	*/
    private Admin admin;

    /**
	* 类型id
	*/
    private QuestionType questionType;

    private String image;

    private static final long serialVersionUID = 1L;

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProblem() {
        return problem;
    }

    public void setProblem(String problem) {
        this.problem = problem;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public QuestionType getQuestionType() {
        return questionType;
    }

    public void setQuestionType(QuestionType questionType) {
        this.questionType = questionType;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", problem=").append(problem);
        sb.append(", answer=").append(answer);
        sb.append(", enable=").append(enable);
        sb.append(", time=").append(time);
        sb.append(", adminId=").append(admin);
        sb.append(", questionTypeId=").append(questionType);
        sb.append("]");
        return sb.toString();
    }
}